package com.dev.springBootDemo.proxy2;

import java.util.Arrays;

/**
 * @author zhumq
 * @date 2024/7/2 21:49
 */
public class TestProxy {
    public static void main(String[] args) throws Exception {
        UserService userService = ProxyUtil.createProxy(new UserServiceImpl());

        System.out.println("----------------用户登录-------------------");
        userService.login("admin", "123456");
        System.out.println("----------------用户删除-------------------");
        userService.deleteUser();
        System.out.println("----------------用户查询-------------------");
        String[] users = userService.selectUsers();
        System.out.println(Arrays.toString(users));

    }
}
